<template>
  <div class="test-contaienr">
    <catalog :list="list" @select="handleSelect"/>
  </div>
</template>

<script>
import Catalog from "./Catalog.vue";
export default {
  components: {
    Catalog,
  },
  data() {
    return {
      list: [
        { name: "a", active: false },
        { name: "b", active: true ,children:[
            {name:'b-1',active:true},
            {name:'b-2',active:true},
            {name:'b-3',active:true},
        ]},
        { name: "c", active: false },
        { name: "d", active: false },
      ],
    };
  },
  methods:{
    handleSelect(item){
      console.log(item);
    }
  }
};
</script>

<style>
</style>